package tk.mybatis.springboot.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

public class CustomizedTask {

    public CustomizedTask(){}

    public CustomizedTask(String taskNo, String taskType, Integer priority, String vehicleNo,
                          String vehicleType, Integer finishAction, Integer FPCarryState,
                          Integer pickup_point, Integer unloading_point, String discharge_height) {
        TaskNo = taskNo;
        TaskType = taskType;
        Priority = priority;
        VehicleNo = vehicleNo;
        VehicleType = vehicleType;
        FinishAction = finishAction;
        this.FPCarryState = FPCarryState;
        Pickup_point = pickup_point;
        Unloading_point = unloading_point;
        Discharge_height = discharge_height;

    }

    public CustomizedTask(String taskNo, Integer priority, String vehicleNo, Integer location, String vehicleType, Integer finishAction) {
        TaskNo = taskNo;
        Priority = priority;
        VehicleNo = vehicleNo;
        Location = location;
        VehicleType = vehicleType;
        FinishAction = finishAction;
    }

    public String TaskNo;

    public String TaskType;

    public Integer Priority =1;

    public String VehicleNo;

    public Integer Location;

    public String VehicleType;

    public Integer FinishAction;

    public Integer FPCarryState = -1;

    public Integer Pickup_point;

    public Integer Unloading_point;

    public String Discharge_height;


    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    public Date start_date = new Date();

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    public Date end_date = new Date();

    public String Pickup_name ;
    public String Unloading_name;

    public Integer client;

    public String Status;

    public Integer Pickup_id;

    public Integer Unloading_id;
}
